home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Present…nuary (Partner) - Disc 2
/
The Apple Reference and Presentations Library (Disc 2)(January 1994).iso
/
Synergy Software
/
US English
/
KaleidaGraph™-PPC
/
Examples folder
/
Macro Source
/
Simplify
< prev
next >
Wrap
Text File
|
1993-04-14
|
1KB
|
206 lines
alpha "Simplify:"
ibase
STOa 9
;
FIX 6
;
alpha "Input Column"
STOa 0
0e+00
STO 00
;
alpha "Fixed Error"
STOa 1
0e+00
STO 01
;
alpha "% Error"
STOa 2
1
STO 02
;
RCLa 9
inpt 3
;
RCL 00
int
STO 03
1000
/
STO 10
;
RCL 01
STO 30
;
XEQ 10
;
XEQ 80
;
RCL 06
RCL 11
RCL 10
-
1.0000100017
+
int
/
100
*
STO 00
FIX 1
alpha "Data Ignored = %"
STOa 0
RCLa 9
view 1
FIX 6
STOP
;
LBL 10
size
1
-
RCL 10
+
STO 11
;
LBL 90
RCLi 11
test 1
GTO 91
;
LBL 92
RCLi 10
test 1
GTO 93
;
RTN
;
LBL 91
1
SUB 11
GTO 90
;
LBL 93
1
ADD 10
GTO 92
;
LBL 80
;
RCL 11
RCL 10
-
1.0000100017
+
int
STO 01
;
RCL 10
int
RCL 03
1000
/
+
STO 19
;
RCL 10
STO 20
;
0e+00
RCL 01
x <= y
GTO 81
;
1
RCL 02
100
/
-
STO 08
;
1
RCL 02
100
/
+
STO 09
;
1.000000000000001e+308
STO 12
;
0e+00
STO 06
;
LBL 98
;
RCLi 20
test 1
GTO 96
abs
STO 07
;
0e+00
RCL 12
x = y
GTO 94
;
LBL 99
;
RCL 12
RCL 08
*
RCL 30
-
RCL 07
x < y
GTO 95
;
RCL 12
RCL 09
*
RCL 30
+
RCL 07
x > y
GTO 95
;
Mi 19
1
ADD 06
;
LBL 96
;
1
ADD 19
ADD 20
;
0e+00
DSE 01
GTO 98
;
RTN
;
LBL 81
RTN
;
LBL 94
0e+00
RCL 07
x != y
GTO 99
Mi 19
1
ADD 06
GTO 96
;
LBL 95
RCL 07
STO 12
UMi 19
GTO 96
;
alpha "Version 1.1 - 5/11/89"
alpha "by Lonnie R. Abelbeck"
alpha "Modified - 4/14/93"
alpha "by W. T. Jones"